package com.ubxtech.core.req;

import com.ubxtech.core.validation.ValidationGroups;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 *
 * @author Victor.Xiao
 * @since 2022-01-14 11:18
*/
@EqualsAndHashCode(callSuper = true)
@Schema(title = "IdReq", description = "id请求")
@Data
public class IdReq extends Req {
    @Schema(title ="主键" )
    @NotBlank(message = "id不能为空",groups = {ValidationGroups.Delete.class,ValidationGroups.Update.class,ValidationGroups.Detail.class})
    private String id;
}
